Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade yew to 0.20 #29

Merged
merged 2 commits into from
Dec 3, 2022
Merged

Upgrade yew to 0.20 #29

merged 2 commits into from
Dec 3, 2022

Conversation

SpanishPear
Copy link
Contributor

Updated yew component to work with 0.20.

Given example was not displaying at full height on firefox, so updated styles in the example.

node_ref: NodeRef::default(),
editor: None,
}
}

fn changed(&mut self, ctx: &Context<Self>) -> bool {
let old_props = mem::replace(&mut self.props, ctx.props().clone());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yew 0.20 provide access to old_props as a argument to fn changed - I presume this works the same, but please correct me if I'm wrong!

@siku2 siku2 merged commit 7a4b358 into siku2:master Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants